import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-supplier-management/supplierinfo/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      state: '1'
    }
  })
}

//查看
export const detail = (id) => {
  return request({
    url: '/api/blade-supplier-management/supplierinfo/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const setBlacklist = (ids,status) => {
  return request({
    url: '/api/blade-supplier-management/supplierinfo/changeSupplierStatus',
    method: 'post',
    params: {
      ids,
      status
    }
  })
}
